/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter5;

/**
 *
 * @author Denise Carolina
 */
public class Propagate {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try{
            System.out.println(reverse(""));
        }catch(Exception e){
            System.err.println(e.getMessage());
        }finally{
            System.out.println("finally");
        }
    }

    public static String reverse(String value) throws Exception{
        if(value.length() == 0){
            throw new Exception("My exceptions test");
        }
        return "String";
    }

}
